<!doctype html>
<html>
	<head>
		<title>A blank Canvas</title>
		<style>
			body{ background-color:grey; }
			canvas { background-color:blue; }
		</style>
		<script>
			window.onload = setupWebGL;
			var gl = null;
			
			function setupWebGL() 
			{
				var canvas = document.getElementById("my-canvas");
				try {
					gl = canvas.getContext("experimental-webgl");
				} catch(e) {
				}
				if(gl) {
					gl.clearColor(1.0, 0.0, 0.0, 1.0);
					gl.clear(gl.COLOR_BUFFER_BIT);
				} else {
					alert("Error: your browser does not appear to support webgl");
				}
			}
		</script>
		
		
	</head>
	<body>
		<canvas id="my-canvas" width="400" height="300">
			Your browser does not support webgl
		</canvas>
	</body>
</html>
			